package com.gopay.common.domain.gopay;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.cipher.utils.SensitiveInfoUtils;
import com.gopay.common.domain.BaseEntity;

/**
 * 企业用户和个人用户 视图
 * 
 * @GopayAllCustInfo.java
 * @author zhanglei
 * @2013-4-19 上午11:05:20 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "GOPAY_ALL_CUST_INFO")
public class GopayAllCustInfo extends BaseEntity {
    private static final long serialVersionUID = -5224542651511334525L;
    private String custId;
    private String custName;
    private String custType;
    private String custStat;
    private String email;
    private String mob;
    private String isRealNameCertify;
    private Date createTime;
    private String regType;
    
    private String caCertSwitch;
    private String dynPwdSwitch;
    
    /**
     * 移动数字证书开关
     */
    private String mobCaCertSwitch;

    @Id
    @Column(name = "CUST_ID")
    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "CUST_NAME")
    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    @Column(name = "CUST_TYPE")
    public String getCustType() {
        return custType;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    @Column(name = "mob")
    public String getMob() {
        //return mob;
        /**
         * modified by zyt 2017-4-12 get时候加密字段返回做解密操作
         */
        return SensitiveInfoUtils.smartDecryptWithCheck(mob);
    }

    public void setMob(String mob) {
        this.mob = mob;
    }

    @Column(name = "CUST_STAT")
    public String getCustStat() {
        return custStat;
    }

    public void setCustStat(String custStat) {
        this.custStat = custStat;
    }

    @Column(name = "EMAIL")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "IS_REAL_NAME_CERTIFY")
    public String getIsRealNameCertify() {
        return isRealNameCertify;
    }

    public void setIsRealNameCertify(String isRealNameCertify) {
        this.isRealNameCertify = isRealNameCertify;
    }

    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "REG_TYPE")
    public String getRegType() {
        return regType;
    }

    public void setRegType(String regType) {
        this.regType = regType;
    }

    @Column(name = "CA_CERT_SWITCH")
    public String getCaCertSwitch() {
        return caCertSwitch;
    }

    public void setCaCertSwitch(String caCertSwitch) {
        this.caCertSwitch = caCertSwitch;
    }

    @Column(name = "DYN_PWD_SWITCH")
    public String getDynPwdSwitch() {
        return dynPwdSwitch;
    }

    public void setDynPwdSwitch(String dynPwdSwitch) {
        this.dynPwdSwitch = dynPwdSwitch;
    }
    
    @Column(name = "MOB_CA_CERT_SWITCH")
	public String getMobCaCertSwitch() {
		return mobCaCertSwitch;
	}

	public void setMobCaCertSwitch(String mobCaCertSwitch) {
		this.mobCaCertSwitch = mobCaCertSwitch;
	}
}
